﻿@model DeJC.DAL.Model.UserList

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutRegistered.cshtml";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>UserList</legend>
        <div class="form-style">
            <ul>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Name,"Nombre")
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Name)
                        @Html.ValidationMessageFor(model => model.Name)
                    </div>                    
                </li>
                <li>
        <div class="editor-label">
            @Html.LabelFor(model => model.CategoryID,"Categoria")
        </div>
        <div class="editor-field">
            @Html.DropDownList("CategoryID","Selecciona una categoria")
            @Html.ValidationMessageFor(model => model.CategoryID)
        </div>                    
                </li>
                <li>
        <div class="editor-label">
            @Html.LabelFor(model => model.Comments,"Comentarios")
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Comments)
            @Html.ValidationMessageFor(model => model.Comments)
        </div>                    
                </li>
            </ul>
            <hr/>
        </div>
@*        <div class="editor-label">
            @Html.LabelFor(model => model.UserID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserID)
            @Html.ValidationMessageFor(model => model.UserID)
        </div>



        <div class="editor-label">
            @Html.LabelFor(model => model.Order)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Order)
            @Html.ValidationMessageFor(model => model.Order)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Deleted)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Deleted)
            @Html.ValidationMessageFor(model => model.Deleted)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DeletedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DeletedDate)
            @Html.ValidationMessageFor(model => model.DeletedDate)
        </div>





        <div class="editor-label">
            @Html.LabelFor(model => model.CreationDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreationDate)
            @Html.ValidationMessageFor(model => model.CreationDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ImagePath)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ImagePath)
            @Html.ValidationMessageFor(model => model.ImagePath)
        </div>*@

        <p>
            <input type="submit" value="Create" /> @Html.ActionLink("Back to List", "Index")
        </p>
    </fieldset>
}